﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushJScript.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCore.css" />
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreEclipse.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>不带参数的Url表达式</h3>
    <pre class="brush: csharp;">
        public class IndexController : BaseController
        {
            [GetHtml("/index/default.jsp")]
            public void Index()
            {
                this.Write("Hello World!");
            }
        }
    </pre>
    <p>
        Url写成什么样就是什么样，理解起来也比较简单。
    </p>
    <b>Url前缀:"/App"</b>
    <pre class="brush: csharp;">
        public class IndexController : BaseController
        {;
            //Url:"/App/say/hello.php"
            [GetJson("/say/hello.php")]
            public void Index()
            {
                this.ViewBag.Msg="Hello World!";
                this.AjaxReturn();
            }
        }
    </pre>
</body>
</html>